<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-gb" lang="en-gb" dir="ltr" id="minwidth" >
<head>
    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
</head>
<body>

<div id="loadingmessage">
    <div style="margin-left:285px;margin-top:160px;">
        <img name="" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/userdata/modules/LiveChat/images/loading.gif" alt="" />
    </div>
</div>

<script type="text/javascript">
RM = {};
RM.Pages = {};
RM.Pages.Functions = {};
RM.Pages.User = {};
RM.Pages.User.Unit = {};
RM.Common = {};

RM.BaseURL = '<?php echo RM_Environment::getInstance()->getRouter()->_(); ?>';
RM.RootURL = '<?php echo RM_Environment::getConnector()->getRootURL(); ?>';

<?php echo $this->_router->getAccembleURLJsCode(); ?>

var user_ip = '<?php echo $_SERVER['REMOTE_ADDR'];?>';

</script>

<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/admin/common.js"></script>
<script type="text/javascript">
    <?php echo RM_JavaScript_Loader::getConstants(); ?>
</script>
<!-- ExtJS CSS -->
<link rel="stylesheet" type="text/css" href="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext/resources/css/ext-all.css"/>
<link rel="stylesheet" type="text/css" href="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/userdata/css/user.css"/>

<!-- ExtJS Base -->

<script language="javascript" type='text/javascript' src='<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext/adapter/ext/ext-base-debug.js'></script>
<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext/ext-all-debug.js"></script>

<link rel="stylesheet" type="text/css" href="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext_addons/ux/css/Ext.ux.StatusBar.css"/>
<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext_addons/ux/Ext.ux.StatusBar.js"></script>


<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/modules/LiveChat/js/encoder.js"></script>

<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/system/js/libs/ext_addons/media/uxmediapak-debug.js"></script>

<script type="text/javascript" src="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/userdata/modules/LiveChat/views/user/scripts/LiveChat/chat.js"></script>
<link rel="stylesheet" type="text/css" href="<?php echo RM_Environment::getConnector()->getRootURL(); ?>RM/userdata/modules/LiveChat/css/main.css"/>
<div id="chatform"></div>
</body>
</html>